import { Config_word } from "./Config_word"
import { Config_serverlist } from "./Config_serverlist"

export class ConfigJson {

    public static jsonList: Array<string> = [
        "config/json/word",
        "config/json/serverlist"
    ]
    public static initJson(resource: cc.JsonAsset) {
        if (resource.name == Config_word.NAME) {
            Config_word.json2Object(resource.json)
        }
        else if (resource.name == Config_serverlist.NAME) {
            Config_serverlist.json2Object(resource.json)
        }
    }
}
